// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'ProductMaterialAccountId',
        footer: "Foots",
        cnName: '生产原材料核算表',
        name: 'ProductMaterialAccount',
        newTabEdit: false,
        url: "/ProductMaterialAccount/",
        sortName: "ProductMaterialAccountId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {};
    const editFormOptions = [];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'ProductMaterialAccountId',title:'成本管理原材料核算标识',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ProductTaskId',title:'生产任务单标识',type:'int',width:110,require:true,align:'left'},
                       {field:'PeriodYear',title:'会计年度',type:'int',width:80,require:true,align:'left'},
                       {field:'PeriodMonth',title:'会计期间',type:'int',width:80,require:true,align:'left'},
                       {field:'MaterialId',title:'物料标识',type:'int',width:110,require:true,align:'left'},
                       {field:'MaterialNo',title:'物料编码',type:'string',width:110,require:true,align:'left'},
                       {field:'MaterialName',title:'物料名称',type:'string',width:110,require:true,align:'left'},
                       {field:'Spec',title:'规格型号',type:'string',width:110,align:'left'},
                       {field:'UnitQty',title:'单位用量',type:'decimal',width:110,require:true,align:'left'},
                       {field:'StartPeriodQty',title:'期初领料数量',type:'decimal',width:110,require:true,align:'left'},
                       {field:'StartPeriodAmount',title:'期初领用金额',type:'decimal',width:110,require:true,align:'left'},
                       {field:'PeriodQty',title:'本期领料数量',type:'decimal',width:110,require:true,align:'left'},
                       {field:'PeriodAmount',title:'本期领用金额',type:'decimal',width:110,require:true,align:'left'},
                       {field:'PeriodMakeUpQty',title:'本期补料数量',type:'decimal',width:110,require:true,align:'left'},
                       {field:'PeriodMakeUpAmount',title:'本期补料金额',type:'decimal',width:110,require:true,align:'left'},
                       {field:'PeriodReturnQty',title:'本期退料数量',type:'decimal',width:110,require:true,align:'left'},
                       {field:'PeriodReturnAmount',title:'本期退料金额',type:'decimal',width:110,require:true,align:'left'},
                       {field:'PeriodCostQty',title:'本期核算数量',type:'decimal',width:110,require:true,align:'left'},
                       {field:'PeriodCostAmount',title:'本期核算金额',type:'decimal',width:110,require:true,align:'left'},
                       {field:'EndPeriodQty',title:'期末核算数量',type:'decimal',width:110,require:true,align:'left'},
                       {field:'EndPeriodAmount',title:'期末核算金额',type:'decimal',width:110,require:true,align:'left'},
                       {field:'IsCriticalParts',title:'是否关键件',type:'int',width:110,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}